package com.fowo.api.pda.model;

import com.fowo.api.entity.Product;
import com.fowo.api.inventory.entity.InventoryPlacement;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * 产品库存类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(title = "产品库存类")
public class ProductInventoryVo extends Product {

    /**
     * FNSKU
     */
    @Schema(title = "FNSKU")
    private String fnsku;

    /**
     * 店铺
     */
    @Schema(title = "店铺")
    private String shopName;

    private Long shopId;

    @Schema(title = "库存总量")
    private BigDecimal waitQty;

    @Schema(title = "在途量")
    private BigDecimal wayQty;

    @Schema(title = "良品量")
    private BigDecimal goodQty;

    @Schema(title = "次品量")
    private BigDecimal defectQty;

    @Schema(title = "待检量")
    private BigDecimal inspectedQty;



    /**
     * 库存情况
     */
    @Schema(title = "库存情况")
    private List<InventoryPlacementItemVo> inventoryList;
}
